import Vue from 'vue'
import Horelist from "./views/HoreList.vue";
import JiNeng from "./views/JiNeng.vue";
import ZhuangBei from "./views/ZhuangBei.vue";
import VueRouter from "vue-router";
import HoreAdd from './views/HoreAdd';
import HoreEdit from './views/HoreEdit'
Vue.use(VueRouter)
const router = new VueRouter({
    routes: [
        { path: "/", redirect: "/hore" },
        { path: "/hore", component: Horelist },
        { path: '/hore/add', component: HoreAdd },
        { path: "/jineng", component: JiNeng },
        { path: "/zhuangbei", component: ZhuangBei },
        { path: '/hore/edit/:id', component: HoreEdit }
    ], linkExactActiveClass: 'active'
});
export default router;